package com.sun.eureka.controller;


import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sun.eureka.entry.Customer;

@RestController
public class CustomerController {
	

	
	@RequestMapping("/customer/orders/{id}")
	public Customer getOrderByCustomerId(@PathVariable("id") Long id) {
		return new Customer(id, "战三", "13312312312", "xx@qq.com");
	}
}
